package com.chensi.cloudtest.config.plugin.elements.impl;

import org.springframework.beans.BeansException;

import com.unibeta.cloudtest.util.SpringContextHolder;

public class SpringBeanFactoryPluginImpl
		extends com.unibeta.cloudtest.config.plugin.elements.impl.SpringBeanFactoryPluginImpl {

	public Object getBean(String beanId) throws BeansException {

		Object bean = null;
		try {

			bean = SpringContextHolder.getBean(beanId);
		} catch (BeansException e) {

			throw e;
		}
		return bean;
	}
}
